<template>
  <div class="wx-login-container">
      
  </div>
</template>

<script>
export default {
    created: function () {
        let href = decodeURI(window.location.href);
        let hrefToken = href.split('?')[1]
        if(hrefToken){
            let token = hrefToken.split('=')[1]
            this.$store.commit("setToken", token); //设置token
            this.$router.push({path: '/'});
        }
    }
}
</script>

<style lang='scss' scoped>

</style>